(function(){
    type myType ={
        name:string,
        age:number,
    }
    interface myInterface{
        name:string,
        age:number,
    }
    interface myInterface{
        gender:string,
    }
    let my : myType = {
        name:"",
        age:0,
    } 
    let you : myInterface = {
        name:"",
        age:0,
        gender:""
    }

    // interface 可以重名 重名的默认里边的内容要求合并
    
    interface classInter{
        name:string,
        age:number,
        gender:string,
        sayHi:()=>void
    }
    class Myclass implements classInter {
        name:string;
        age:number;
        gender:string;
        constructor(name:string,age:number,gender:string) {
            this.name = name;
            this.age = age;
            this.gender = gender;
        }
        sayHi(){
            console.log("Hi,I'm "+this.name);
        }
    }
})()